<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!-- <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="헬 스" />

<title>main</title>
<link rel="stylesheet" type="text/css" href="css/bbs.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/mainLoginForm.css" />
<link rel="stylesheet" type="text/css" href="css/footer.css" />
<link rel="stylesheet" type="text/css" href="css/member_commons.css" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<link href='css/calendar/fullcalendar.css' rel='stylesheet' />
<link href='css/calendar/fullcalendar.print.css' rel='stylesheet' media='print' />

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="js/loginCheck.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/member.js"></script>
<script type="text/javascript" src="js/healthCareMain.js"></script>
<script type="text/javascript" src="js/younseok.js"></script>
<script type="text/javascript" src="js/chunghan.js"></script>
<script type="text/javascript" src="js/heesun.js"></script>
<script src="js/highChart/highcharts.js"></script>
<script src="js/highChart/themes/grid.js"></script>
<script type="text/javascript" src="js/jindo.desktop.min.ns.js"></script>
<script type="text/javascript" src="js/ajaxMethod.js"></script>
<script src='js/calendar/fullcalendar.js'></script>
<script src='js/calendar/fullcalendar.min.js'></script>
<script src='js/calendar/gcal.js'></script>
<script src="http://www.html5canvastutorials.com/libraries/three.min.js"></script> -->

<script type="text/javascript">

function fileUploadPopup(itemsNo) {
    <c:if test="${login == null}">
        alert("로그인을 먼저 해주세요");
    </c:if>
    <c:if test="${login != null}">
    alert("fileupload");
    
        var url = "boardlist.spring?action=fileupload&boardItemsNo=" + itemsNo;
        $("#divDialogFile" ).dialog( "open" );
        $("#frame").attr("src", url);
    </c:if>
     
}

function itemsView(itemsNo){
	$.ajax({
		url: 'board.spring?action=itemsView',
		method:'post',
		success:function(html) {
			$(".parsingPage").html(html);
		},
	});
	
}
function boardItemsPremodify(boardItemsNo){
	
	$.ajax({
        url: 'board.spring?action=boardItemsPremodify' + '&boardItemsNo=' + boardItemsNo,
        method:'post',
        success:function(html) {
                $(".parsingPage").html(html);
        },            
    });
	
}
function boardItemsModify(){
	
	$.ajax({
        url: 'board.spring',
        method:'post',
        data: $("#boardmodifyForm").serialize() + '&action=boardItemsModify',
        success:function(html) {
                $(".parsingPage").html(html);
        },            
    });
	
}
function boardItemsPreAdd(){
    
    <%--<c:if test="${login == null}">
    alert("로그인을 먼저 해주세요");
    </c:if>
    <c:if test="${login != null}">--%>
    $.ajax({
        url: 'board.spring?action=boardItemsPreAdd',
        method:'post',
        success:function(html) {
                $(".parsingPage").html(html);
        }
        <%--error:function(){
            alert("fail");  
        }--%>
        
    });
    
    
    <%--</c:if>--%>
}
function boardItemsAdd(){
	
	$.ajax({
		
		url: 'board.spring',
		method:'post',	
		data: $("#addForm").serialize() + '&action=boardItemsAdd',
		success:function(html){
			$(".parsingPage").html(html);
		}
		
	});
}
	
</script>



<!-- </head>
<body style="width: 1200px; margin: 0 auto;"> -->
	<!-- 회원 가입  투명 배경화면 레이어 Div -->
	<div class="ui-widget-overlay"></div>

	<div id="main_body">
		<div id="head">
			<a id="logo" href="main.spring">
				<div id="logoCanvas" style="width: 350px; height:100px; title;Burpee;"> </div>
			</a>
			<!-- 헤드 메뉴 바 div	 -->
			<div id="headMemuBar">
				<ul class="head_menu_bar" id="head_menu_bar">
					<li class="head_menu_bar_li"><a href="main.spring">HOME</a></li>
					<li class="head_menu_bar_li"><a class="hsubs"
						href="healthMain.jsp">헬스 관리</a>
						<ul class="sub">
							<li><a href="javascript:exercisePurposeSelectList('H');">홈트레이닝</a></li>
							<li><a href="javascript:exercisePurposeSelectList('W');">웨이트 트레이닝</a></li>
							<li><a href="javascript:exercisePurposeSelectList('Y');">요가</a></li>
							<li><a href="javascript:exercisePurposeSelectList('S');">스트레칭</a></li>
							<li><a href="javascript:exercisePurposeSelectList('D');">다이어트</a></li>
							<li><a href="javascript:exercisePurposeSelectList('A');">유산소 운동</a></li>
						</ul></li>
					<li class="head_menu_bar_li">
                        <a class="hsubs" href="javascript:menuBarReading();">음식 영양</a>
						<ul class="sub">
							<li><a href="javascript:totalFoodInformation();">음식</a></li>
							<li><a href="javascript:foodIngestPurposeSelectList('B');">영양식</a></li>
							<li><a href="javascript:foodIngestPurposeSelectList('C')">간편식</a></li>
							<li><a href="javascript:foodIngestPurposeSelectList('D')">다이어트식</a></li>
						</ul></li>
					<li class="head_menu_bar_li">
                        <a class="hsubs" href="javascript:grouplist();">그룹</a>
						<ul class="sub">
							<li><a href="">그룹생성</a></li>
							<li><a href="">그룹수정</a></li>
							<li><a href="">그룹삭제</a></li>
							<li><a href="">관리자모드</a></li>
						</ul></li>
					<li class="head_menu_bar_li">
                        <a class="hsubs" href="mapPage.jsp">위치 표시</a></li>
					<li class="head_menu_bar_li">
                         <a href="javascript:healthCareMain();">건강 기록부</a>
                         <ul class="sub">
                            <li><a href="javascript:privateInformation();">개인상세정보</a></li>
                            <li><a href="javascript:schedular();">종합스케쥴러</a></li>
                            <li><a href="javascript:mySports();">내 운동표</a></li>
                            <li><a href="javascript:myFood();">내 식단표</a></li>
                            <li><a href="javascript:healthGraph();">건강통계</a></li>
                        </ul>
                    </li> 
					<li class="head_menu_bar_li"><a href="admin.spring?action=adminMode">관리자모드</a></li>
					<div id="lavalamp"></div>
				</ul>
			</div>
			<!-- headMenuBar END -->
		</div>
		<!-- //head END -->
  
<script type="text/javascript">
var angularSpeed = 0.2; 
var lastTime = 0;

// this function is executed on each animation frame
function animate(){
  // update
  var time = (new Date()).getTime();
  var timeDiff = time - lastTime;
  var angleChange = angularSpeed * timeDiff * 2 * Math.PI / 1000;
  cube.rotation.y += angleChange;
  lastTime = time;

  // render
  renderer.render(scene, camera);

  // request new frame
  requestAnimationFrame(function(){
      animate();
  });
}

// renderer
var renderer = new THREE.WebGLRenderer();
renderer.setSize(350, 100);

this.dd = document.getElementById('logoCanvas');
dd.appendChild(renderer.domElement);
// camera
var camera = new THREE.PerspectiveCamera(21, window.innerWidth / window.innerHeight, 1, 3000);
camera.position.z = 400;

// scene
var scene = new THREE.Scene();

// material
var material = new THREE.MeshLambertMaterial({
  map: THREE.ImageUtils.loadTexture('image/burpee.jpg')
});
          
// cube
var cube = new THREE.Mesh(new THREE.CubeGeometry(450, 200, 300), material);
cube.overdraw = true;
cube.rotation.x = Math.PI * 0.81;
scene.add(cube);

// add subtle ambient lighting
var ambientLight = new THREE.AmbientLight(0xbbbbbb);
scene.add(ambientLight);

// directional lighting
var directionalLight = new THREE.DirectionalLight(0xffffff);
directionalLight.position.set(1, 1, 1).normalize();
scene.add(directionalLight);

// start animation
animate();

</script>
  
  
  
  
  
  
  
  
  
  
  
  
  